/**
 * Created by zhangwenlei on 2017/4/11.
 */
ADF.domControl.Label = function(parent) {
    ADF.domControl.Label.superclass.constructor.call(this, parent);
};

COM.util.defineClass(ADF.domControl.Label, ADF.domControl.BaseControl, {
    getLabel: function(){
        return "Label";
    },
    setText: function(text) {
        this.domElement.innerHTML = text;
    },
    _getDomElement: function(model) {
        var label = COM.util.HTMLUtil.createELement('<span class="text-center" >'+model.getText()+'</span>');
        return label[0];
    }

});